package ModelLayer;		//makes this class a part of the ModelLayer package

/**
 * Write a description of class Supplier here.
 * @author (ucn-1semprojekt-dm78-gruppe1) 
 */
@SuppressWarnings("serial")
public class Supplier extends Person
{
    private String companyName;
    private int creditornr;
    
    /**
     * Constructor for objects of class Supplier
     */
    public Supplier(String name, String address, String postal, String city, String phone, String email, String companyName, int creditornr)
    {
    	super(name, address, postal, city, phone, email);
        this.companyName = companyName;
        this.creditornr = creditornr;
    }
    
    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }
    
    public void setCreditornr(int creditorNr)
    {
        this.creditornr = creditorNr;
    }
    
    public String getCompanyName()
    {
        return companyName;
    }
    
    public int getCreditornr()
    {
        return creditornr;
    }
    
}
